#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
抽奖系统启动脚本
"""

from app import app, db, create_tables

if __name__ == '__main__':
    with app.app_context():
        create_tables()
    
    print("抽奖系统启动中...")
    print("管理员页面: http://localhost:5000/control-panel-2024")
    print("用户抽奖页面: http://localhost:5000/lottery")
    print("主页: http://localhost:5000/")
    print("按 Ctrl+C 停止服务")
    
    app.run(debug=True, host='0.0.0.0', port=5000)
